package cn.springcloud.fix.oauth.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
public class ApiController {

    @RequestMapping(value = "/a")
    public Map<String, String> a() {
        Map<String, String> map = new HashMap<>();
        map.put("username", "yangjun");
        return map;
    }

    @RequestMapping(value = "/test")
    public Map<String, String> info() {
        Map<String, String> map = new HashMap<>();
        map.put("username", "yangjun");
        return map;
    }
}
